package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.entity.ReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerReturnDao {

    void saveReturnList(CustomerReturnList customerReturnList);

    void saveReturnListGoods(@Param("crlg") CustomerReturnListGoods crlg,
                             @Param("price") Integer price,
                             @Param("total")Integer total);

    List<ReturnList> getReturnList(@Param("returnNumber") String returnNumber,
                                   @Param("customerId") Integer customerId,
                                   @Param("state") Integer state,
                                   @Param("sTime") String sTime,
                                   @Param("eTime") String eTime);

    List<ReturnListGoods> getReturnListGoods(Integer customerReturnListId);

    void returnDeleteGoods(Integer customerReturnListId);

    void returnDelete(Integer customerReturnListId);

    List<CustomerReturnList> getCusReturnCount(@Param("sTime") String sTime,
                                               @Param("eTime") String eTime,
                                               @Param("goodsTypeId") Integer goodsTypeId,
                                               @Param("codeOrName") String codeOrName);
}
